<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>友情链接 - 社交圈</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #8b5cf6;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-tertiary: #94a3b8;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --bg-secondary: #f1f5f9;
            --border-light: #e2e8f0;
            --border-medium: #cbd5e1;
            --radius: 12px;
            --radius-sm: 8px;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 主要内容区域 */
        .content-container {
            padding: 16px;
        }
        
        /* 页面标题和描述 */
        .page-header {
            text-align: center;
            padding: 16px 0 24px;
        }
        
        .page-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 8px;
        }
        
        .page-desc {
            color: var(--text-secondary);
            font-size: 0.9rem;
            max-width: 80%;
            margin: 0 auto;
        }
        
        /* 链接分类标题 */
        .links-category {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 24px 0 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-left: 4px;
        }
        
        .links-category i {
            color: var(--primary);
            font-size: 1.2rem;
        }
        
        /* 1. 简约卡片式友情链接 */
        .card-links {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }
        
        .card-link-item {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 16px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            color: var(--text-primary);
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .card-link-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .link-logo {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            margin-bottom: 10px;
            object-fit: contain;
            background-color: var(--bg-light);
            padding: 6px;
        }
        
        .link-name {
            font-weight: 500;
            font-size: 0.9rem;
            margin-bottom: 4px;
        }
        
        .link-desc {
            font-size: 0.75rem;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 2. 带图标列表式友情链接 */
        .list-links {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 24px;
        }
        
        .list-link-item {
            display: flex;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-light);
            color: var(--text-primary);
            text-decoration: none;
            transition: background-color 0.2s;
        }
        
        .list-link-item:last-child {
            border-bottom: none;
        }
        
        .list-link-item:hover {
            background-color: var(--bg-light);
        }
        
        .list-link-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            flex-shrink: 0;
            background-color: var(--bg-light);
        }
        
        .list-link-info {
            flex: 1;
        }
        
        .list-link-name {
            font-weight: 500;
            margin-bottom: 2px;
        }
        
        .list-link-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        .list-link-arrow {
            color: var(--text-tertiary);
            font-size: 1rem;
        }
        
        /* 3. 图片徽章式友情链接 */
        .badge-links {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            padding: 16px;
            background-color: var(--bg-white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-bottom: 24px;
        }
        
        .badge-link-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background-color: var(--bg-light);
            border-radius: 20px;
            text-decoration: none;
            transition: background-color 0.2s;
        }
        
        .badge-link-item:hover {
            background-color: var(--bg-secondary);
        }
        
        .badge-link-logo {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            object-fit: contain;
            background-color: white;
            padding: 4px;
        }
        
        .badge-link-name {
            font-size: 0.85rem;
            color: var(--text-primary);
        }
        
        /* 4. 分类标签式友情链接 */
        .tag-links {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 16px;
            margin-bottom: 24px;
        }
        
        .tag-links-header {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            overflow-x: auto;
            padding-bottom: 8px;
        }
        
        .tag-link-tab {
            padding: 6px 14px;
            border-radius: 16px;
            font-size: 0.85rem;
            white-space: nowrap;
            cursor: pointer;
        }
        
        .tag-link-tab.active {
            background-color: var(--primary);
            color: white;
        }
        
        .tag-link-tab:not(.active) {
            background-color: var(--bg-light);
            color: var(--text-secondary);
        }
        
        .tag-links-content {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
        }
        
        .tag-link-item {
            padding: 10px;
            border-radius: var(--radius-sm);
            text-align: center;
            text-decoration: none;
            font-size: 0.85rem;
            color: var(--text-primary);
            border: 1px solid var(--border-light);
            transition: all 0.2s;
        }
        
        .tag-link-item:hover {
            border-color: var(--primary);
            color: var(--primary);
            background-color: rgba(59, 130, 246, 0.05);
        }
        
        /* 5. 带评分的友情链接 */
        .rating-links {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }
        
        .rating-link-item {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 16px;
            box-shadow: var(--shadow);
            text-decoration: none;
            color: var(--text-primary);
            transition: transform 0.2s;
        }
        
        .rating-link-item:hover {
            transform: translateY(-2px);
        }
        
        .rating-link-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .rating-link-logo {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            object-fit: contain;
            background-color: var(--bg-light);
            padding: 4px;
        }
        
        .rating-link-name {
            font-weight: 500;
            flex: 1;
        }
        
        .rating-stars {
            color: var(--warning);
            font-size: 0.8rem;
        }
        
        .rating-link-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .rating-link-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }
        
        /* 6. 合作伙伴展示 */
        .partner-links {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px 16px;
            margin-bottom: 24px;
        }
        
        .partner-links-slider {
            overflow: hidden;
            position: relative;
        }
        
        .partner-links-track {
            display: flex;
            gap: 24px;
            animation: scrollPartners 30s linear infinite;
            padding: 10px 0;
        }
        
        .partner-links-track:hover {
            animation-play-state: paused;
        }
        
        .partner-link-item {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 120px;
            text-decoration: none;
        }
        
        .partner-link-logo {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: contain;
            background-color: var(--bg-light);
            padding: 10px;
            margin-bottom: 8px;
        }
        
        .partner-link-name {
            font-size: 0.85rem;
            color: var(--text-primary);
            text-align: center;
        }
        
        @keyframes scrollPartners {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }
        
        /* 申请友情链接区域 */
        .apply-link-section {
            background-color: linear-gradient(135deg, var(--primary-light), var(--primary));
            background-color: var(--primary);
            color: white;
            border-radius: var(--radius);
            padding: 24px 16px;
            text-align: center;
            margin: 32px 0;
        }
        
        .apply-link-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .apply-link-desc {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 16px;
            max-width: 80%;
            margin-left: auto;
            margin-right: auto;
        }
        
        .apply-link-btn {
            background-color: white;
            color: var(--primary);
            border: none;
            padding: 8px 24px;
            border-radius: 20px;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .apply-link-btn:hover {
            background-color: var(--bg-light);
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
            text-decoration: none;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* 响应式调整 */
        @media (max-width: 576px) {
            .card-links {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .rating-links {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">友情链接</div>
        <button class="nav-action primary" id="shareBtn">
            <i class="fas fa-share-alt"></i>
        </button>
    </div>
    
    <!-- 主要内容区域 -->
    <div class="content-container">
        <!-- 页面标题 -->
        <div class="page-header">
            <div class="page-title">合作伙伴与友情链接</div>
            <div class="page-desc">探索我们的合作网站和推荐平台，发现更多精彩内容</div>
        </div>
        
        <!-- 1. 简约卡片式友情链接 -->
        <h3 class="links-category">
            <i class="fas fa-th-large"></i>
            精选网站
        </h3>
        <div class="card-links">
            <a href="#" class="card-link-item" target="_blank">
                <img src="https://picsum.photos/id/20/100/100" alt="创意设计网" class="link-logo">
                <div class="link-name">创意设计网</div>
                <div class="link-desc">分享优质设计资源和创意灵感</div>
            </a>
            <a href="#" class="card-link-item" target="_blank">
                <img src="https://picsum.photos/id/21/100/100" alt="旅行日记" class="link-logo">
                <div class="link-name">旅行日记</div>
                <div class="link-desc">记录全球旅行见闻和攻略</div>
            </a>
            <a href="#" class="card-link-item" target="_blank">
                <img src="https://picsum.photos/id/22/100/100" alt="美食家" class="link-logo">
                <div class="link-name">美食家</div>
                <div class="link-desc">发现各地特色美食和 recipes</div>
            </a>
            <a href="#" class="card-link-item" target="_blank">
                <img src="https://picsum.photos/id/23/100/100" alt="科技前沿" class="link-logo">
                <div class="link-name">科技前沿</div>
                <div class="link-desc">最新科技资讯和产品评测</div>
            </a>
            <a href="#" class="card-link-item" target="_blank">
                <img src="https://picsum.photos/id/24/100/100" alt="音乐分享" class="link-logo">
                <div class="link-name">音乐分享</div>
                <div class="link-desc">独立音乐人和音乐推荐</div>
            </a>
            <a href="#" class="card-link-item" target="_blank">
                <img src="https://picsum.photos/id/25/100/100" alt="阅读空间" class="link-logo">
                <div class="link-name">阅读空间</div>
                <div class="link-desc">书籍推荐和阅读心得分享</div>
            </a>
        </div>
        
        <!-- 2. 带图标列表式友情链接 -->
        <h3 class="links-category">
            <i class="fas fa-list-ul"></i>
            常用工具网站
        </h3>
        <div class="list-links">
            <a href="#" class="list-link-item" target="_blank">
                <div class="list-link-icon" style="color: var(--primary);">
                    <i class="fas fa-image"></i>
                </div>
                <div class="list-link-info">
                    <div class="list-link-name">图片编辑工具</div>
                    <div class="list-link-desc">在线图片处理和美化工具</div>
                </div>
                <i class="fas fa-external-link-alt list-link-arrow"></i>
            </a>
            <a href="#" class="list-link-item" target="_blank">
                <div class="list-link-icon" style="color: var(--secondary);">
                    <i class="fas fa-video"></i>
                </div>
                <div class="list-link-info">
                    <div class="list-link-name">视频剪辑平台</div>
                    <div class="list-link-desc">简单易用的在线视频编辑工具</div>
                </div>
                <i class="fas fa-external-link-alt list-link-arrow"></i>
            </a>
            <a href="#" class="list-link-item" target="_blank">
                <div class="list-link-icon" style="color: var(--success);">
                    <i class="fas fa-cloud-upload-alt"></i>
                </div>
                <div class="list-link-info">
                    <div class="list-link-name">云存储服务</div>
                    <div class="list-link-desc">安全可靠的文件存储和分享</div>
                </div>
                <i class="fas fa-external-link-alt list-link-arrow"></i>
            </a>
            <a href="#" class="list-link-item" target="_blank">
                <div class="list-link-icon" style="color: var(--warning);">
                    <i class="fas fa-font"></i>
                </div>
                <div class="list-link-info">
                    <div class="list-link-name">字体下载站</div>
                    <div class="list-link-desc">免费商用字体和设计资源</div>
                </div>
                <i class="fas fa-external-link-alt list-link-arrow"></i>
            </a>
            <a href="#" class="list-link-item" target="_blank">
                <div class="list-link-icon" style="color: var(--danger);">
                    <i class="fas fa-language"></i>
                </div>
                <div class="list-link-info">
                    <div class="list-link-name">在线翻译工具</div>
                    <div class="list-link-desc">多语言即时翻译和词典查询</div>
                </div>
                <i class="fas fa-external-link-alt list-link-arrow"></i>
            </a>
        </div>
        
        <!-- 3. 图片徽章式友情链接 -->
        <h3 class="links-category">
            <i class="fas fa-tags"></i>
            快速访问
        </h3>
        <div class="badge-links">
            <a href="#" class="badge-link-item" target="_blank">
                <img src="https://picsum.photos/id/26/100/100" alt="天气查询" class="badge-link-logo">
                <span class="badge-link-name">天气查询</span>
            </a>
            <a href="#" class="badge-link-item" target="_blank">
                <img src="https://picsum.photos/id/27/100/100" alt="快递查询" class="badge-link-logo">
                <span class="badge-link-name">快递查询</span>
            </a>
            <a href="#" class="badge-link-item" target="_blank">
                <img src="https://picsum.photos/id/28/100/100" alt="地图导航" class="badge-link-logo">
                <span class="badge-link-name">地图导航</span>
            </a>
            <a href="#" class="badge-link-item" target="_blank">
                <img src="https://picsum.photos/id/29/100/100" alt="计算器" class="badge-link-logo">
                <span class="badge-link-name">计算器</span>
            </a>
            <a href="#" class="badge-link-item" target="_blank">
                <img src="https://picsum.photos/id/30/100/100" alt="日历" class="badge-link-logo">
                <span class="badge-link-name">日历</span>
            </a>
            <a href="#" class="badge-link-item" target="_blank">
                <img src="https://picsum.photos/id/31/100/100" alt="汇率转换" class="badge-link-logo">
                <span class="badge-link-name">汇率转换</span>
            </a>
            <a href="#" class="badge-link-item" target="_blank">
                <img src="https://picsum.photos/id/32/100/100" alt="时间戳" class="badge-link-logo">
                <span class="badge-link-name">时间戳</span>
            </a>
            <a href="#" class="badge-link-item" target="_blank">
                <img src="https://picsum.photos/id/33/100/100" alt="二维码" class="badge-link-logo">
                <span class="badge-link-name">二维码生成</span>
            </a>
        </div>
        
        <!-- 4. 分类标签式友情链接 -->
        <h3 class="links-category">
            <i class="fas fa-layer-group"></i>
            分类导航
        </h3>
        <div class="tag-links">
            <div class="tag-links-header">
                <div class="tag-link-tab active" data-category="social">社交平台</div>
                <div class="tag-link-tab" data-category="news">新闻资讯</div>
                <div class="tag-link-tab" data-category="education">教育学习</div>
                <div class="tag-link-tab" data-category="entertainment">娱乐休闲</div>
                <div class="tag-link-tab" data-category="shopping">购物电商</div>
            </div>
            
            <div class="tag-links-content" id="social-links">
                <a href="#" class="tag-link-item" target="_blank">朋友圈</a>
                <a href="#" class="tag-link-item" target="_blank">微博</a>
                <a href="#" class="tag-link-item" target="_blank">小红书</a>
                <a href="#" class="tag-link-item" target="_blank">抖音</a>
                <a href="#" class="tag-link-item" target="_blank">快手</a>
                <a href="#" class="tag-link-item" target="_blank">B站</a>
                <a href="#" class="tag-link-item" target="_blank">知乎</a>
                <a href="#" class="tag-link-item" target="_blank">豆瓣</a>
            </div>
        </div>
        
        <!-- 5. 带评分的友情链接 -->
        <h3 class="links-category">
            <i class="fas fa-star"></i>
            热门推荐
        </h3>
        <div class="rating-links">
            <a href="#" class="rating-link-item" target="_blank">
                <div class="rating-link-header">
                    <img src="https://picsum.photos/id/34/100/100" alt="设计灵感" class="rating-link-logo">
                    <div class="rating-link-name">设计灵感</div>
                    <div class="rating-stars">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star-half-alt"></i>
                    </div>
                </div>
                <div class="rating-link-desc">汇集全球优秀设计作品，提供创意灵感</div>
                <div class="rating-link-meta">
                    <span>访问量: 12.5万</span>
                    <span>评分: 4.5</span>
                </div>
            </a>
            <a href="#" class="rating-link-item" target="_blank">
                <div class="rating-link-header">
                    <img src="https://picsum.photos/id/35/100/100" alt="技术博客" class="rating-link-logo">
                    <div class="rating-link-name">技术博客</div>
                    <div class="rating-stars">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="far fa-star"></i>
                    </div>
                </div>
                <div class="rating-link-desc">分享编程技术和开发经验的博客平台</div>
                <div class="rating-link-meta">
                    <span>访问量: 8.3万</span>
                    <span>评分: 4.0</span>
                </div>
            </a>
            <a href="#" class="rating-link-item" target="_blank">
                <div class="rating-link-header">
                    <img src="https://picsum.photos/id/36/100/100" alt="生活方式" class="rating-link-logo">
                    <div class="rating-link-name">生活方式</div>
                    <div class="rating-stars">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                    </div>
                </div>
                <div class="rating-link-desc">高品质生活方式指南和创意内容</div>
                <div class="rating-link-meta">
                    <span>访问量: 15.7万</span>
                    <span>评分: 5.0</span>
                </div>
            </a>
        </div>
        
        <!-- 6. 合作伙伴展示 -->
        <h3 class="links-category">
            <i class="fas fa-handshake"></i>
            合作伙伴
        </h3>
        <div class="partner-links">
            <div class="partner-links-slider">
                <div class="partner-links-track">
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/37/200/200" alt="合作伙伴1" class="partner-link-logo">
                        <div class="partner-link-name">云服务科技</div>
                    </a>
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/38/200/200" alt="合作伙伴2" class="partner-link-logo">
                        <div class="partner-link-name">创意工作室</div>
                    </a>
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/39/200/200" alt="合作伙伴3" class="partner-link-logo">
                        <div class="partner-link-name">支付解决方案</div>
                    </a>
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/40/200/200" alt="合作伙伴4" class="partner-link-logo">
                        <div class="partner-link-name">数据分析平台</div>
                    </a>
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/41/200/200" alt="合作伙伴5" class="partner-link-logo">
                        <div class="partner-link-name">营销服务</div>
                    </a>
                    <!-- 复制一份用于无缝滚动效果 -->
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/37/200/200" alt="合作伙伴1" class="partner-link-logo">
                        <div class="partner-link-name">云服务科技</div>
                    </a>
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/38/200/200" alt="合作伙伴2" class="partner-link-logo">
                        <div class="partner-link-name">创意工作室</div>
                    </a>
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/39/200/200" alt="合作伙伴3" class="partner-link-logo">
                        <div class="partner-link-name">支付解决方案</div>
                    </a>
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/40/200/200" alt="合作伙伴4" class="partner-link-logo">
                        <div class="partner-link-name">数据分析平台</div>
                    </a>
                    <a href="#" class="partner-link-item" target="_blank">
                        <img src="https://picsum.photos/id/41/200/200" alt="合作伙伴5" class="partner-link-logo">
                        <div class="partner-link-name">营销服务</div>
                    </a>
                </div>
            </div>
        </div>
        
        <!-- 申请友情链接区域 -->
        <div class="apply-link-section">
            <div class="apply-link-title">申请友情链接</div>
            <div class="apply-link-desc">如果您希望与我们交换友情链接，扩大双方影响力，请点击下方按钮提交申请</div>
            <button class="apply-link-btn" id="applyLinkBtn">申请链接交换</button>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-compass nav-icon"></i>
            <span>发现</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-plus-circle nav-icon"></i>
            <span>发布</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-link nav-icon"></i>
            <span>链接</span>
        </a>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 分类标签切换
        document.querySelectorAll('.tag-link-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                // 移除所有标签的active类
                document.querySelectorAll('.tag-link-tab').forEach(t => t.classList.remove('active'));
                // 给当前点击的标签添加active类
                this.classList.add('active');
                
                // 这里可以添加实际切换内容的逻辑
                const category = this.getAttribute('data-category');
                showToast(`已切换到${this.textContent}分类`);
            });
        });
        
        // 友情链接点击事件
        document.querySelectorAll('.card-link-item, .list-link-item, .badge-link-item, .tag-link-item, .rating-link-item, .partner-link-item').forEach(item => {
            item.addEventListener('click', function(e) {
                const linkName = this.querySelector('.link-name, .list-link-name, .badge-link-name, .tag-link-item, .rating-link-name, .partner-link-name').textContent;
                showToast(`正在访问 ${linkName}`);
            });
        });
        
        // 申请友情链接按钮
        document.getElementById('applyLinkBtn').addEventListener('click', function() {
            showToast('友情链接申请表单已打开');
            // 这里可以添加打开申请表单的逻辑
        });
        
        // 顶部按钮事件
        document.getElementById('backBtn').addEventListener('click', function() {
            history.back();
        });
        
        document.getElementById('shareBtn').addEventListener('click', function() {
            showToast('链接分享功能已打开');
        });
        
        // 底部导航点击
        document.querySelectorAll('.nav-item').forEach(item => {
            item.addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelectorAll('.nav-item').forEach(i => i.classList.remove('active'));
                this.classList.add('active');
                const title = this.querySelector('span').textContent;
                showToast(`已切换到${title}`);
            });
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
    </script>
</body>
</html>

